﻿#region 命名空间

using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using WinnerCMS.Common;
using WinnerCMS.Data;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.BLL
{
    public class GatherHistoryManage
    {
        private static readonly GatherHistoryDal Dal = new GatherHistoryDal();

        /// <summary>
        /// 记录Url
        /// </summary>
        /// <param name="url"></param>
        public void LogUrl(string url)
        {
            url = url.ToLower().Replace("http://", string.Empty);
            Dal.LogUrl(url);
        }

        /// <summary>
        /// 是否存在
        /// </summary>
        /// <param name="url"></param>
        /// <returns></returns>
        public bool Exists(string url)
        {
            url = url.ToLower().Replace("http://", string.Empty);

            return Dal.Exists(url);
        }
    }
}